The sidebar was refusing to show shortcuts for
things that don't have a local path, for no
good reason.
return g_filename_to_uri (name, NULL, NULL);
}
-static gboolean
-should_show_file (GtkPlacesSidebar *sidebar,
- GFile *file)
-{
- char *path;
-
- path = g_file_get_path (file);
- if (path)
- {
- g_free (path);
- return TRUE;
- }
-
- return FALSE;
-}
-
static gboolean
file_is_shown (GtkPlacesSidebar *sidebar,
GFile *file)
g_object_unref (file);
- if (!should_show_file (sidebar, file))
- continue;
-
if (file_is_shown (sidebar, file))
continue;